﻿using System.Windows;
using System.Windows.Input;
using JDKD.BMCS.Business;
using NutShell.DesignPattern;

namespace JDKD.BMCS.AppUI
{
        /// <summary>
        /// LoginWindow.xaml 的交互逻辑
        /// </summary>
        public partial class PushWindow : Window
        {
                

                public PushWindow()
                {
                        InitializeComponent();
                }

                #region 字段

                private BusinessCache cache = Singleton<BusinessCache>.Instance;

                #endregion 字段

                private void Window_Loaded(object sender, RoutedEventArgs e)
                {
                        for (int i = 1; i < 5; i++)
                        {
                                LeftPushComboBox.Items.Add(i);
                                RightPushComboBox.Items.Add(i);
                        }

                        LeftPushComboBox.SelectedIndex = 0;
                        RightPushComboBox.SelectedIndex = 0;
                        
                }

                private void Window_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
                {
                        if (e.ChangedButton == MouseButton.Left)
                        {
                                this.DragMove();
                        }
                }

                private void AcceptButton_Click(object sender, RoutedEventArgs e)
                {
                        

                        Close();
                }

                private void CancelButton_Click(object sender, RoutedEventArgs e)
                {
                        Close();
                }
        }
}